//
//  OosPersonActivityObject.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 4/4/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <oos4ios/Model/OosPersonActivityObject.h>

@implementation OosPersonActivityObject

static NSString *fetchPredicate = @"user.slug = %@";

+ (OosPersonActivityObject *) objectFromUserSlug:(NSString *)slug
{
    OosPersonActivityObject *result = [self objectWithPredicate:fetchPredicate, slug];
    if (result == nil) {
        result = [self create];
        result.user = [OosUser userFromSlug:slug];
    }
    return result;
}

@dynamic user;
@dynamic actorActivities;

@end
